package cn.tx.redis7.iomultiplex.bio.accept;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import cn.hutool.core.util.IdUtil;

/**
 * @author jizenan
 * @date 2025/6/17
 * Description:
 */
public class RedisServer {
    public static void main(String[] args) throws IOException {
        ServerSocket serverSocket = new ServerSocket(6380);
        while (true){
            System.out.println("模拟RedisServer启动------111 等待连接");
            Socket socket = serverSocket.accept();
            System.out.println("-----222 成功连接："+ IdUtil.simpleUUID());
            System.out.println();
        }
    }
}
